<?php
/**
 * TopAdmin
 * 版权所有 2018-2027 TopAdmin，并保留所有权利。
 * Author: TopAdmin
 * Date: 2021/2/24
 */
namespace app\admin\validate;

use think\Validate;

class Notice extends Validate
{
    protected $rule = [
        'title|公告标题' => [
            'require' => 'require',
            'max'     => '255',
            'unique'  => 'notice',
        ],

        'description|描述' => [
            'max' => '255',
        ],

    ];
}